﻿using Newtonsoft.Json;

namespace LService.Net.Net.Rest
{
    /// <summary>
    /// Class RestResponse.
    /// </summary>
    /// <typeparam name="ContentType">The type of the content type.</typeparam>
    /// <typeparam name="ParamType">The type of the parameter type.</typeparam>
    public class RestResponse<ContentType, ParamType>
    {
        /// <summary>
        /// Gets or sets the body.
        /// </summary>
        /// <value>The body.</value>
        [JsonProperty("body")]
        public RestBodyResult<ContentType, ParamType> body { get; set; }

        /// <summary>
        /// Gets or sets the header.
        /// </summary>
        /// <value>The header.</value>
        [JsonProperty("header")]
        public RestHeaderResult header { get; set; }
    }
}
